<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class EventInfotable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('event_info', static function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('event_name',32)->comment('事件名称')->default('')->nullable();
            $table->integer('event_id')->comment('提交的事件id')->default(0)->nullable();
            $table->string('submitter', 32)->comment('提交人')->default('');
            $table->integer('submitter_id')->comment('提交人id')->default(0);
            $table->integer('file')->comment('文件id')->default(0);
            $table->string('remark', 255)->comment('备注')->default('');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('', function (Blueprint $table) {
            //
        });
    }
}
